use serde::Serializer;
use serde_derive::{Deserialize, Serialize};

#[derive(Serialize, Deserialize)]
pub struct ApiResult {
    pub code: i32,
    pub message: String,
    pub timestamp: i64,
}

/*impl Serialize for PrimitiveDateTime {
    fn serialize<S>(&self, serializer: S) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
        S: Serializer {
        serializer.serialize_i64(self.assume_offset(UtcOffset::current_local_offset()).timestamp())
    }
}*/